package cn.initcap;

import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @author initcap
 * @date Created in 2020/7/12 10:09.
 */
public class PointData {

    private Long deviceId;
    private Long pointId;
    private String rawValue;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String value;
    private Long originTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long createTime;

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Long getPointId() {
        return pointId;
    }

    public void setPointId(Long pointId) {
        this.pointId = pointId;
    }

    public String getRawValue() {
        return rawValue;
    }

    public void setRawValue(String rawValue) {
        this.rawValue = rawValue;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Long getOriginTime() {
        return originTime;
    }

    public void setOriginTime(Long originTime) {
        this.originTime = originTime;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "PointData{" +
                "deviceId=" + deviceId +
                ", pointId=" + pointId +
                ", rawValue='" + rawValue + '\'' +
                ", value='" + value + '\'' +
                ", originTime=" + originTime +
                ", createTime=" + createTime +
                '}';
    }
}
